﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Rotempco.BaseClass.DAL;
using Rotempco.BaseClass.Objects.EntityObjects;

namespace Rotempco.BaseClass.Managers
{
    public class EmailQueueManager : EmailQueueData
    {
        public void AddToEmailQueue(string recipient, string subject, string message)
        {
            EmailQueue emailQueue = new EmailQueue()
            {
                RecipientAddress = recipient,
                Subject = subject,
                Message = message,
                SenderAddress = "info@rotempco.com",
                SenderName = "Rotempco"
            };

            DataFactory.EmailQueue.WriteToDB(emailQueue);
        }

    }
}
